﻿using ServiceStack.DataAnnotations;

namespace EmailClient.Model
{
    public class Attachment
    {
        [PrimaryKey, AutoIncrement]
        public int Id { get; set; }
        [Required]
        public string Name { get; set; }
        [Required]
        [References(typeof(Letter))]
        public int LetterId { get; set; }
        public string ContentType { get; set; }
        public string ContentTransferEncoding { get; set; }
        [Required]
        public byte[] attach { get; set; }
    }
}
